<template>
  <div>
    <div
      class="item border-bottom"
      v-for="(item, index) of list"
      :key="index"
    >
      <div>{{item.title}}</div>
      <div v-if="item.children">
        <detail-list :list="item.children"></detail-list>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: {
      type: Array
    }
  }
}
</script>

<style lang="stylus" scoped>
.item{
  line-height .8rem
  font-size .32rem
  padding 0 .2rem
}
</style>
